﻿using AutoMapper;
using Sale.Api.Application.Command.ClientPrice;
using Sale.Api.Application.Command.Contract;
using Sale.Api.Application.Command.Discount;
using Sale.Api.Application.工单.Command.Client;
using Sale.Api.Application.工单.Command.OpenFare;
using Sale.Domain;
using Sale.Domain.工单;

namespace Sale.Api
{
    public class Mappe: Profile
    {
        public Mappe()
        {
            //客户单价
            CreateMap<AddClientPriceCommand, ClientPriceModel>().ReverseMap();
            CreateMap<UpdateClientPriceCommand, ClientPriceModel>().ReverseMap();
            CreateMap<UpdateDiscountCommand, ClientPriceModel>().ReverseMap();
            CreateMap<AddContractCommand, ContractModel>().ReverseMap();
            CreateMap<UpdateContractCommand, ContractModel>().ReverseMap();
            CreateMap<AddOpenFareCommand, OpenFareModel>().ReverseMap();
            CreateMap<UpdateOpenFareCommand, OpenFareModel>().ReverseMap();
            CreateMap<AddClinentCommand, ClientModel>().ReverseMap();
            CreateMap<UpdateClinentCommand, ClientModel>().ReverseMap();
        }
    }
}
